package com.sinog.biz.service.api.async;

import com.sinog.biz.schedule.HomePageSchedule;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * @desc 异步开始执行
 * @author ybl
 * @date 2022/9/21
 */
@Slf4j
@Service
@ConditionalOnProperty(name = "gkzx.azbj.sy.open", havingValue = "true")
public class AsyncStartExecute {

    @Autowired
    private HomePageSchedule homePageSchedule;

    /**
     * 描述
     */
    public void startExecute() {
        homePageSchedule.executeAzbjrsSave();
    }
}